package com.cloud.template.luna.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;

/**
 * mq发送示例
 * Created by Viole on 2017/12/29.
 */
public class SendMQTemplate {

    @Autowired
    private JmsTemplate jmsTemplate;

    public void sendMQ(){
        jmsTemplate.convertAndSend("queueName", "value");
    }
}
